package com;

import java.io.File;
import java.io.FileInputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

public class FirstClass {

	public void readFromFiles(String filepath){
		try{
			FileInputStream input = new FileInputStream(filepath);
			FileChannel channel = input.getChannel();
			ByteBuffer buffer = ByteBuffer.allocate(1024);
			channel.read(buffer);
			
			System.out.println(buffer.toString());
		}catch(Exception e){
			e.printStackTrace();
		}
		
	}
}
